//
//  HLDownloadMananger.h
//  Vision
//
//  Created by HarwordLiu on 16/4/6.
//  Copyright © 2016年 Rilma.Liu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MyEyesCellModel.h"

@protocol HLDownloadManagerDelegate <NSObject>

- (void)changeProgress:(CGFloat)progress WithModel:(MyEyesCellModel *)model;

@end

@interface HLDownloadMananger : NSObject<NSURLSessionDelegate, NSURLSessionDownloadDelegate>

//@property (nullable, readonly, copy) NSString *entifier;
@property NSURLRequestCachePolicy requestCachePolicy;
@property NSTimeInterval timeoutIntervalForRequest;
@property NSURLRequestNetworkServiceType networkServiceType;
@property BOOL allowsCellularAccess;


@property (nonatomic, strong) NSURLSessionDownloadTask *downTask;
@property (nonatomic, strong) NSURLSession *downLoadSession;
@property (nonatomic, strong) NSData *data;
@property (nonatomic, strong) UIView *progress;

@property (nonatomic, assign) id delegate;


+ (instancetype)sharedMananger;

- (BOOL)downLoadMovie:(MyEyesCellModel *)model;
- (BOOL)resume_;

- (void)cancelDownLoad;



@end
